home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / Jooky / append.c next >
Encoding:
C/C++ Source or Header  |  1999-11-01  |  338 b   |  17 lines

  1. #include "defines.h"
  2. #include "includes.h"
  3.  
  4. struct mp3ent *append(struct mp3ent *entry)
  5. {
  6.     struct mp3ent *temp ;
  7.     char *tempstr ;
  8.  
  9.     temp=(struct mp3ent *)calloc(1,sizeof(struct mp3ent));
  10.     tempstr=(char *)calloc(1,TITLELEN + 1);
  11.     temp->fname=tempstr;
  12.     temp->prev=entry;
  13.     temp->next=NULL;
  14.     entry->next=temp;
  15.     return temp;
  16. }
  17.